package com.objecteffects.template.service;

import com.google.inject.Inject;
import com.google.inject.persist.Transactional;

import com.objecteffects.template.model.UserEntity;
import com.objecteffects.template.persist.api.IUserEntityDao;

/**
 * @author Rusty Wright
 */
public class SubclassedUserEntityService extends
AbstractEntityService<UserEntity> {
    /** */
    @Inject
    SubclassedUserEntityService(final IUserEntityDao _dao) {
        super(_dao);
    }

    @Transactional
    public UserEntity findByUsername(final String username) {
        final UserEntity result =
            ((IUserEntityDao) this.getDao()).findByUserName(username);

        return result;
    }
}
